/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.service.impl;

import io.renren.common.service.impl.BaseServiceImpl;

import io.renren.dao.SysRoleDao;
import io.renren.dto.SysRoleDTO;
import io.renren.entity.SysRoleEntity;
import io.renren.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色
 * 
 * @author Mark sunlightcs@gmail.com
 */
@Service
public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleDao, SysRoleEntity> implements SysRoleService {

	@Autowired
	private SysRoleDao sysRoleDao;

	@Override
	public List<SysRoleDTO> getRoleName(Long userid) {
		List<SysRoleDTO> roleName = sysRoleDao.getRoleName(userid);
		return roleName;
	}
}